package com.bsoft.jcxxjs.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TCopyobjectRelationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TCopyobjectRelationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(BigDecimal value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(BigDecimal value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(BigDecimal value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(BigDecimal value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<BigDecimal> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<BigDecimal> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdIsNull() {
            addCriterion("T_COPYOBJECT_ID is null");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdIsNotNull() {
            addCriterion("T_COPYOBJECT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdEqualTo(BigDecimal value) {
            addCriterion("T_COPYOBJECT_ID =", value, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdNotEqualTo(BigDecimal value) {
            addCriterion("T_COPYOBJECT_ID <>", value, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdGreaterThan(BigDecimal value) {
            addCriterion("T_COPYOBJECT_ID >", value, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("T_COPYOBJECT_ID >=", value, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdLessThan(BigDecimal value) {
            addCriterion("T_COPYOBJECT_ID <", value, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdLessThanOrEqualTo(BigDecimal value) {
            addCriterion("T_COPYOBJECT_ID <=", value, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdIn(List<BigDecimal> values) {
            addCriterion("T_COPYOBJECT_ID in", values, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdNotIn(List<BigDecimal> values) {
            addCriterion("T_COPYOBJECT_ID not in", values, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_COPYOBJECT_ID between", value1, value2, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTCopyobjectIdNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_COPYOBJECT_ID not between", value1, value2, "tCopyobjectId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdIsNull() {
            addCriterion("T_RELATION_ID is null");
            return (Criteria) this;
        }

        public Criteria andTRelationIdIsNotNull() {
            addCriterion("T_RELATION_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTRelationIdEqualTo(BigDecimal value) {
            addCriterion("T_RELATION_ID =", value, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdNotEqualTo(BigDecimal value) {
            addCriterion("T_RELATION_ID <>", value, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdGreaterThan(BigDecimal value) {
            addCriterion("T_RELATION_ID >", value, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("T_RELATION_ID >=", value, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdLessThan(BigDecimal value) {
            addCriterion("T_RELATION_ID <", value, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdLessThanOrEqualTo(BigDecimal value) {
            addCriterion("T_RELATION_ID <=", value, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdIn(List<BigDecimal> values) {
            addCriterion("T_RELATION_ID in", values, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdNotIn(List<BigDecimal> values) {
            addCriterion("T_RELATION_ID not in", values, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_RELATION_ID between", value1, value2, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTRelationIdNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_RELATION_ID not between", value1, value2, "tRelationId");
            return (Criteria) this;
        }

        public Criteria andTCategoryIsNull() {
            addCriterion("T_CATEGORY is null");
            return (Criteria) this;
        }

        public Criteria andTCategoryIsNotNull() {
            addCriterion("T_CATEGORY is not null");
            return (Criteria) this;
        }

        public Criteria andTCategoryEqualTo(String value) {
            addCriterion("T_CATEGORY =", value, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryNotEqualTo(String value) {
            addCriterion("T_CATEGORY <>", value, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryGreaterThan(String value) {
            addCriterion("T_CATEGORY >", value, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("T_CATEGORY >=", value, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryLessThan(String value) {
            addCriterion("T_CATEGORY <", value, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryLessThanOrEqualTo(String value) {
            addCriterion("T_CATEGORY <=", value, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryLike(String value) {
            addCriterion("T_CATEGORY like", value, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryNotLike(String value) {
            addCriterion("T_CATEGORY not like", value, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryIn(List<String> values) {
            addCriterion("T_CATEGORY in", values, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryNotIn(List<String> values) {
            addCriterion("T_CATEGORY not in", values, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryBetween(String value1, String value2) {
            addCriterion("T_CATEGORY between", value1, value2, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTCategoryNotBetween(String value1, String value2) {
            addCriterion("T_CATEGORY not between", value1, value2, "tCategory");
            return (Criteria) this;
        }

        public Criteria andTDateIsNull() {
            addCriterion("T_DATE is null");
            return (Criteria) this;
        }

        public Criteria andTDateIsNotNull() {
            addCriterion("T_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andTDateEqualTo(Date value) {
            addCriterion("T_DATE =", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateNotEqualTo(Date value) {
            addCriterion("T_DATE <>", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateGreaterThan(Date value) {
            addCriterion("T_DATE >", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateGreaterThanOrEqualTo(Date value) {
            addCriterion("T_DATE >=", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateLessThan(Date value) {
            addCriterion("T_DATE <", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateLessThanOrEqualTo(Date value) {
            addCriterion("T_DATE <=", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateIn(List<Date> values) {
            addCriterion("T_DATE in", values, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateNotIn(List<Date> values) {
            addCriterion("T_DATE not in", values, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateBetween(Date value1, Date value2) {
            addCriterion("T_DATE between", value1, value2, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateNotBetween(Date value1, Date value2) {
            addCriterion("T_DATE not between", value1, value2, "tDate");
            return (Criteria) this;
        }

        public Criteria andTCreaterIsNull() {
            addCriterion("T_CREATER is null");
            return (Criteria) this;
        }

        public Criteria andTCreaterIsNotNull() {
            addCriterion("T_CREATER is not null");
            return (Criteria) this;
        }

        public Criteria andTCreaterEqualTo(BigDecimal value) {
            addCriterion("T_CREATER =", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterNotEqualTo(BigDecimal value) {
            addCriterion("T_CREATER <>", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterGreaterThan(BigDecimal value) {
            addCriterion("T_CREATER >", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("T_CREATER >=", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterLessThan(BigDecimal value) {
            addCriterion("T_CREATER <", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterLessThanOrEqualTo(BigDecimal value) {
            addCriterion("T_CREATER <=", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterIn(List<BigDecimal> values) {
            addCriterion("T_CREATER in", values, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterNotIn(List<BigDecimal> values) {
            addCriterion("T_CREATER not in", values, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_CREATER between", value1, value2, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_CREATER not between", value1, value2, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTStateIsNull() {
            addCriterion("T_STATE is null");
            return (Criteria) this;
        }

        public Criteria andTStateIsNotNull() {
            addCriterion("T_STATE is not null");
            return (Criteria) this;
        }

        public Criteria andTStateEqualTo(String value) {
            addCriterion("T_STATE =", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateNotEqualTo(String value) {
            addCriterion("T_STATE <>", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateGreaterThan(String value) {
            addCriterion("T_STATE >", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateGreaterThanOrEqualTo(String value) {
            addCriterion("T_STATE >=", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateLessThan(String value) {
            addCriterion("T_STATE <", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateLessThanOrEqualTo(String value) {
            addCriterion("T_STATE <=", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateLike(String value) {
            addCriterion("T_STATE like", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateNotLike(String value) {
            addCriterion("T_STATE not like", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateIn(List<String> values) {
            addCriterion("T_STATE in", values, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateNotIn(List<String> values) {
            addCriterion("T_STATE not in", values, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateBetween(String value1, String value2) {
            addCriterion("T_STATE between", value1, value2, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateNotBetween(String value1, String value2) {
            addCriterion("T_STATE not between", value1, value2, "tState");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table T_COPYOBJECT_RELATION
     *
     * @mbggenerated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}